package priv.utrix.micro.annotation;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 自定义失效注解，过滤器在security-core模块不生效
 * <p>如果没有配置，默认true，应该配置</p>
 *
 * @author utrix
 * @date 2020/11/28
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@ConditionalOnProperty(prefix = "customize", name = "invalid", havingValue = "true", matchIfMissing = true)
public @interface CustomizeInvalidAnnotation {}
